<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>自动化脚本平台 - 管理后台</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: #f8fafc;
            color: #2d3436;
            line-height: 1.6;
        }

        .header {
            background: rgba(255, 255, 255, 0.95);
            padding: 1.2rem 2.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(12px);
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 800;
            color: #1a73e8;
            text-decoration: none;
            background: linear-gradient(135deg, #1a73e8, #6366f1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .user-info span {
            font-weight: 600;
            color: #1e293b;
        }

        .user-info a {
            padding: 0.6rem 1.2rem;
            background: #f1f5f9;
            color: #475569;
            text-decoration: none;
            border-radius: 24px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .user-info a:hover {
            background: #1a73e8;
            color: white;
            transform: translateY(-1px);
        }

        .main-container {
            display: flex;
            margin-top: 72px;
            min-height: calc(100vh - 72px);
        }

        .sidebar {
            width: 280px;
            background: #fff;
            padding: 2rem 0;
            box-shadow: 4px 0 12px rgba(0,0,0,0.03);
            position: fixed;
            height: calc(100vh - 72px);
            transition: all 0.3s ease;
        }

        .menu-item {
            padding: 1.2rem 2rem;
            display: flex;
            align-items: center;
            gap: 1.2rem;
            color: #64748b;
            text-decoration: none;
            transition: all 0.3s;
            border-left: 4px solid transparent;
            font-weight: 600;
            font-size: 1.05rem;
        }

        .menu-item:hover,
        .menu-item.active {
            background: #f8fafc;
            color: #1a73e8;
            border-left-color: #1a73e8;
        }

        .content {
            flex: 1;
            margin-left: 280px;
            padding: 2.5rem;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .stat-card {
            background: #fff;
            padding: 2.5rem;
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.04);
            transition: all 0.4s ease;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .stat-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 32px rgba(0,0,0,0.08);
        }

        .stat-card h3 {
            color: #64748b;
            font-size: 1.1rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .stat-card .number {
            font-size: 2.8rem;
            font-weight: 800;
            background: linear-gradient(135deg, #1a73e8, #6366f1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -1px;
        }

        .data-table {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.04);
            overflow: hidden;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .table-header {
            padding: 2rem 2.5rem;
            border-bottom: 1px solid #e2e8f0;
        }

        .table-header h2 {
            color: #1e293b;
            font-size: 1.5rem;
            font-weight: 700;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th, td {
            padding: 1.4rem 2.5rem;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }

        th {
            background: #f8fafc;
            font-weight: 600;
            color: #64748b;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        tr:hover {
            background: #f8fafc;
        }

        .status-badge {
            padding: 0.5rem 1.2rem;
            border-radius: 24px;
            font-size: 0.95rem;
            font-weight: 600;
            display: inline-block;
        }

        .status-active {
            background: #dcfce7;
            color: #16a34a;
        }

        .status-inactive {
            background: #fff1f2;
            color: #e11d48;
        }

        td a {
            color: #1a73e8;
            text-decoration: none;
            margin-right: 1.2rem;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        td a:hover {
            background: #1a73e8;
            color: white;
        }
    </style>
</head>
<body>
    <header class="header">
        <div class="header-content">
            <div class="logo">自动化脚本平台</div>
            <div class="user-info">
                <span>管理员</span>
                <a href="/logout">退出</a>
            </div>
        </div>
    </header>

    <div class="main-container">
        <nav class="sidebar">
            <a href="#" class="menu-item active">
                <span>仪表盘</span>
            </a>
            <a href="#" class="menu-item">
                <span>用户管理</span>
            </a>
            <a href="#" class="menu-item">
                <span>脚本管理</span>
            </a>
            <a href="#" class="menu-item">
                <span>系统设置</span>
            </a>
        </nav>

        <main class="content">
            <div class="dashboard-grid">
                <div class="stat-card">
                    <h3>总用户数</h3>
                    <div class="number">1,234</div>
                </div>
                <div class="stat-card">
                    <h3>活跃用户</h3>
                    <div class="number">891</div>
                </div>
                <div class="stat-card">
                    <h3>脚本数量</h3>
                    <div class="number">56</div>
                </div>
            </div>

            <div class="data-table">
                <div class="table-header">
                    <h2>最近用户</h2>
                </div>
                <table>
                    <thead>
                        <tr>
                            <th>用户名</th>
                            <th>注册时间</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>张三</td>
                            <td>2024-01-15</td>
                            <td><span class="status-badge status-active">活跃</span></td>
                            <td>
                                <a href="#">编辑</a>
                                <a href="#">删除</a>
                            </td>
                        </tr>
                        <tr>
                            <td>李四</td>
                            <td>2024-01-14</td>
                            <td><span class="status-badge status-inactive">未激活</span></td>
                            <td>
                                <a href="#">编辑</a>
                                <a href="#">删除</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </main>
    </div>
</body>
</html>
